from rest_framework import serializers

from apps.detail.models import DetailModel
from apps.index.models import ChartModel


class ImgUrlSerializers(serializers.ModelSerializer):
    class Meta:
        model = ChartModel
        fields = ('image_url', 'id')


class ListSerializers(serializers.ModelSerializer):
    class Meta:
        model = DetailModel
        fields = ('name', 'id', 'image_url', 'introduce')
